<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>分类 - 手机客户端</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
<link rel="stylesheet" href="css/style.css" />
<script src="js/jquery.js"></script>
<script src="js/touchslider.js"></script>
<script src="js/jquery.global.js"></script>
<script type="text/javascript">
	$(function($){
		var ptypeId = getUrlParam("ptypeId");
		var $loadAjax = new $.LoadAjax({
			renderTarget : ".wrap #treeList ul",
			fn : function(obj,data,mask){
					var list = data;
					if(list.length==0){
						$(mask).remove();
						return;
					}
					for(var i in list){
						$(obj).append('<li data-cateId="'+list[i].id+'"><a href="javascript:;">'+list[i].text+'</a></li>');
					}
			},
			url : requestPath+"/websamp/appInstall/topAppTptTypeList?ptypeId="+ptypeId
		});
		$loadAjax.init();
		$loadAjax.loadAppList();
		
		var $switchover = new $.Switchover({
			obj : ".wrap #treeList.tree ul li",
			fn : function(obj){
				obj.parent().css({position:"absolute",left:"0",top:"9px",width:"100%"}).animate({left:"-2000px"},500).queue(function(){window.location.href = "list.html?appType="+obj.attr("data-cateId")+"&typeName="+encodeURI(obj.find("a").html());});
			}
		}).init();
	});		
	
</script>
</head>
<body>
<div class="wrap">
  <div id="banner">
    <div>
      <ol>
        <li><a href="javascript:;"><img src="images/banner_01.jpg" /></a></li>
        <li><a href="javascript:;"><img src="images/banner_02.jpg" /></a></li>
        <li><a href="javascript:;"><img src="images/banner_03.jpg" /></a></li>
      </ol>
    </div>
  </div>
  <div id="treeList" class="panel list tree">
    <ul>
    </ul>
  </div>
</div>
<script type="text/javascript">
console=window.console || {dir:new Function(),log:new Function()}
new TouchSlider({id:'banner',direction:'left',auto:1,mouseWheel:true});
</script>
</body>
</html>